package com.example.liteflow.nd;

import com.yomahub.liteflow.annotation.LiteflowComponent;
import com.yomahub.liteflow.core.NodeComponent;
import lombok.extern.slf4j.Slf4j;

/**
 * 节点组件信息
 *
 * @author chen.an
 * @date 2024-08-14 13:48
 */
@Slf4j
@LiteflowComponent(id = "ItNode", name = "迭代器节点")
public class ItNode extends NodeComponent {
    @Override
    public void process() throws Exception {
        Integer loopIndex = this.getLoopIndex();
        String str = this.getCurrLoopObj();
        log.info("ItNode节点组件【{}】-Node,idx数据：{},obj:{} ", Thread.currentThread().threadId(), loopIndex, str);
    }
}
